---
page_title: "cloudflare_logpull_retention Resource - Cloudflare"
subcategory: ""
description: |-
  Allows management of the Logpull Retention settings used to control whether or not to retain HTTP request logs.
---

# cloudflare_logpull_retention (Resource)

Allows management of the Logpull Retention settings used to control whether or not to retain HTTP request logs.

## Example Usage

```terraform
resource "cloudflare_logpull_retention" "example" {
  zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
  enabled = "true"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `enabled` (Boolean) Whether you wish to retain logs or not.
- `zone_id` (String) The zone identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**

### Read-Only

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_logpull_retention.example <zone_id>
```
